package com.topvision.utils.file;

/**
 * @author shengwm
 * @version V0.0.1
 * @Title: FileType
 * @Package com.topvision.common.utils.file
 * @Description: TODO
 * @date 2017/6/8
 */
public enum FileType {
    /**
     * JEPG.
     */
    JPEG("jpg", "FFD8FF"),

    /**
     * PNG.
     */
    PNG("png", "89504E47"),

    /**
     * GIF.
     */
    GIF("gif", "47494638"),

    /**
     * TIFF.
     */
    TIFF("tiff", "49492A00"),

    /**
     * Windows Bitmap.
     */
    BMP("bmp", "424D"),

    /**
     * CAD.
     */
    DWG("dwg", "41433130"),

    /**
     * Adobe Photoshop.
     */
    PSD("psd", "38425053"),

    /**
     * Rich Text Format.
     */
    RTF("rtf", "7B5C727466"),

    /**
     * XML.
     */
    XML("xml", "3C3F786D6C"),

    /**
     * HTML.
     */
    HTML("html", "68746D6C3E"),

    /**
     * Email [thorough only].
     */
    EML("eml", "44656C69766572792D646174653A"),

    /**
     * Outlook Express.
     */
    DBX("dbx", "CFAD12FEC5FD746F"),

    /**
     * Outlook (pst).
     */
    PST("pst", "2142444E"),

    /**
     * MS Word/Excel.
     */
    XLS_DOC("doc", "D0CF11E0"),

    /**
     * MS Access.
     */
    MDB("mdb", "5374616E64617264204A"),

    /**
     * WordPerfect.
     */
    WPD("wpd", "FF575043"),

    /**
     * Postscript.
     */
    EPS("eps", "252150532D41646F6265"),

    /**
     * Adobe Acrobat.
     */
    PDF("pdf", "255044462D312E"),

    /**
     * Quicken.
     */
    QDF("qdf", "AC9EBD8F"),

    /**
     * Windows Password.
     */
    PWL("pwl", "E3828596"),

    /**
     * ZIP Archive.
     */
    ZIP("zip", "504B0304"),

    /**
     * RAR Archive.
     */
    RAR("rar", "52617221"),

    /**
     * Wave.
     */
    WAV("wav", "57415645"),

    /**
     * AVI.
     */
    AVI("avi", "41564920"),

    /**
     * Real Audio.
     */
    RAM("ram", "2E7261FD"),

    /**
     * Real Media.
     */
    RM("rm", "2E524D46"),

    /**
     * MPEG (mpg).
     */
    MPG("mpg", "000001BA"),

    /**
     * Quicktime.
     */
    MOV("mov", "6D6F6F76"),

    /**
     * Windows Media.
     */
    ASF("asf", "3026B2758E66CF11"),

    /**
     * MIDI.
     */
    MID("mid", "4D546864");

    private final String value;
    private final String label;

    FileType(String value, String label) {
        this.value = value;
        this.label = label;
    }

    /**
     * 获取值
     *
     * @return
     */
    public String getValue() {
        return value;
    }

    /**
     * 获取标签
     *
     * @return
     */
    public String getLabel() {
        return label;
    }
}
